package com.kabuda.blog.vo.params;

import lombok.Data;

/**
 * @author kabuda
 * @create 2023-01-16 14:48
 */
@Data
public class PageParams {

    private int page = 1;

    private int pageSize = 10;

    private Long categoryId;

    private Long tagId;

    private String year;
    private String month;

    public String getMonth(){
        if(this.month != null&&month.length()==1){
            return "0"+this.month;
        }
        return this.month;
    }
}
